package com.ruoyi.zyx.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.ZyxDevice;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 派工对象 zyx_sendorder
 *
 * @author lhs
 * @date 2021-06-08
 */
public class ZyxSendorder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;



    /** 医院id  */
    @Excel(name = "维修商部门id ")
    private Long wxsdepartid;

    /** 医院id  */
    @Excel(name = "医院id ")
    private Long departid;


    /** 订单编号  */
    @Excel(name = "订单编号 ")
    private String orderno;


    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceid;

    /** 派工类别  */
    @Excel(name = "派工类别 ")
    private String sendtype;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String devicestatus;

    /** 服务状态 */
    @Excel(name = "服务状态")
    private String servicestatus;

    /** 派工时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "派工时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date senddate;


    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "接单时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date takedate;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @Excel(name = "服务时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
    private Date servicedate;

    /** 进行时间 */
    @Excel(name = "进行时间")
    private Double processdate;

    /** 责任人  */
    @Excel(name = "责任人 ")
    private Long memberid;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overdate;
    /** 是否提交财务报销单 */
    private String issubmitcost;

    private  String isshare;//是否共享

    private  String isbill;//是否回执

    /** 删除标记 */
    private String delFlag;
    /** 附加费用  */
    private Long addcost;

    private Long[] seladmins;//批量保存用 选中的管理员账号
    private String devicemodel;//设备型号

    private Long useoffice;//使用科室
    private String devicetype;//
    private SysDept sysDept;//医院
    private ZyxDevice zyxDevice;//设备
    private String membername;//员工姓名
    private Long userId;//登录用户id
    private String wxsname;//维修商名称
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDepartid(Long departid)
    {
        this.departid = departid;
    }

    public Long getDepartid()
    {
        return departid;
    }
    public void setDeviceid(Long deviceid)
    {
        this.deviceid = deviceid;
    }

    public Long getDeviceid()
    {
        return deviceid;
    }
    public void setSendtype(String sendtype)
    {
        this.sendtype = sendtype;
    }

    public String getSendtype()
    {
        return sendtype;
    }
    public void setDevicestatus(String devicestatus)
    {
        this.devicestatus = devicestatus;
    }

    public String getDevicestatus()
    {
        return devicestatus;
    }
    public void setServicestatus(String servicestatus)
    {
        this.servicestatus = servicestatus;
    }

    public String getServicestatus()
    {
        return servicestatus;
    }
    public void setSenddate(Date senddate)
    {
        this.senddate = senddate;
    }

    public Date getSenddate()
    {
        return senddate;
    }

    public void setMemberid(Long memberid)
    {
        this.memberid = memberid;
    }

    public Long getMemberid()
    {
        return memberid;
    }
    public void setOverdate(Date overdate)
    {
        this.overdate = overdate;
    }

    public Date getOverdate()
    {
        return overdate;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        //主要用于一个类的格式化输出。ToStringBuilder类中的append方法可以向该类添加基本类型、数组和对象 ，只有添加的方法才会被toString方法输出。
        //        ToStringStyle类则是对输出的内容进行格式化
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)//
            .append("id", getId())
                .append("wxsdepartid",getWxsdepartid())
            .append("departid", getDepartid())
            .append("deviceid", getDeviceid())
            .append("sendtype", getSendtype())
            .append("devicestatus", getDevicestatus())
            .append("servicestatus", getServicestatus())
            .append("senddate", getSenddate())
            .append("processdate", getProcessdate())
            .append("memberid", getMemberid())
            .append("overdate", getOverdate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
                .append("isshare",getIsshare())
                .append("takedate",getTakedate())
                .append("servicedate",getServicedate())
                .append("isbill",getIsbill())
                .append("orderno",getOrderno())
                .append("issubmitcost",getIssubmitcost())
            .toString();
    }


    public Long getUseoffice() {
        return useoffice;
    }

    public void setUseoffice(Long useoffice) {
        this.useoffice = useoffice;
    }

    public SysDept getSysDept() {
        return sysDept;
    }

    public void setSysDept(SysDept sysDept) {
        this.sysDept = sysDept;
    }

    public ZyxDevice getZyxDevice() {
        return zyxDevice;
    }

    public void setZyxDevice(ZyxDevice zyxDevice) {
        this.zyxDevice = zyxDevice;
    }

    public String getDevicetype() {
        return devicetype;
    }

    public void setDevicetype(String devicetype) {
        this.devicetype = devicetype;
    }

    public String getMembername() {
        return membername;
    }

    public void setMembername(String membername) {
        this.membername = membername;
    }

    public Long getWxsdepartid() {
        return wxsdepartid;
    }

    public void setWxsdepartid(Long wxsdepartid) {
        this.wxsdepartid = wxsdepartid;
    }

    public String getDevicemodel() {
        return devicemodel;
    }

    public void setDevicemodel(String devicemodel) {
        this.devicemodel = devicemodel;
    }

    public String getIsshare() {
        return isshare;
    }

    public void setIsshare(String isshare) {
        this.isshare = isshare;
    }

    public Long[] getSeladmins() {
        return seladmins;
    }

    public void setSeladmins(Long[] seladmins) {
        this.seladmins = seladmins;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Date getTakedate() {
        return takedate;
    }

    public void setTakedate(Date takedate) {
        this.takedate = takedate;
    }

    public Date getServicedate() {
        return servicedate;
    }

    public void setServicedate(Date servicedate) {
        this.servicedate = servicedate;
    }

    public Double getProcessdate() {
        return processdate;
    }

    public void setProcessdate(Double processdate) {
        this.processdate = processdate;
    }

    public String getIsbill() {
        return isbill;
    }

    public void setIsbill(String isbill) {
        this.isbill = isbill;
    }

    public Long getAddcost() {
        return addcost;
    }

    public void setAddcost(Long addcost) {
        this.addcost = addcost;
    }


    public String getOrderno() {
        return orderno;
    }

    public void setOrderno(String orderno) {
        this.orderno = orderno;
    }

    public String getWxsname() {
        return wxsname;
    }

    public void setWxsname(String wxsname) {
        this.wxsname = wxsname;
    }



    public String getIssubmitcost() {
        return issubmitcost;
    }

    public void setIssubmitcost(String issubmitcost) {
        this.issubmitcost = issubmitcost;
    }
}
